package com.gurun.camera.addDevice.entity;

import com.danale.sdk.platform.constant.device.OnlineType;
import com.danale.sdk.platform.constant.device.ProductType;
import com.danale.sdk.platform.constant.deviceinfo.AddedState;

/**
 * Created by Administrator on 2016/9/14.
 */
public class DeviceInfoEntity {

    /**
     * Device Id
     */
    private String deviceId;

    /**
     * Device Model
     */
    private String model;

    /**
     * Company
     */
    private String company;

    /**
     * User Account
     */
    private String ownerAccount;

    /**
     * Add State
     */
    private AddedState addedState;

    /**
     * Online Type
     */
    private OnlineType onlineType;

    /**
     * Product Type
     */
    private ProductType productType;

    /**
     * Device Photo Url
     */
    private String photoUrl;

    public DeviceInfoEntity(){}

    public DeviceInfoEntity(DeviceInfoEntity entity){
        deviceId = entity.getDeviceId();
        model = entity.getModel();
        company = entity.getCompany();
        ownerAccount = entity.getOwnerAccount();
        addedState = entity.getAddedState();
        onlineType = entity.getOnlineType();
        productType = entity.getProductType();
        photoUrl = entity.getPhotoUrl();
    }

    public void update(DeviceInfoEntity entity){
        deviceId = entity.getDeviceId();
        model = entity.getModel();
        company = entity.getCompany();
        ownerAccount = entity.getOwnerAccount();
        addedState = entity.getAddedState();
        onlineType = entity.getOnlineType();
        productType = entity.getProductType();
        photoUrl = entity.getPhotoUrl();
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getOwnerAccount() {
        return ownerAccount;
    }

    public void setOwnerAccount(String ownerAccount) {
        this.ownerAccount = ownerAccount;
    }

    public AddedState getAddedState() {
        return addedState;
    }

    public void setAddedState(AddedState addedState) {
        this.addedState = addedState;
    }

    public OnlineType getOnlineType() {
        return onlineType;
    }

    public void setOnlineType(OnlineType onlineType) {
        this.onlineType = onlineType;
    }

    public ProductType getProductType() {
        return productType;
    }

    public void setProductType(ProductType productType) {
        this.productType = productType;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }
}
